home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1999 #2
/
Amiga Plus CD - 1999 - No. 2.iso
/
System-Boost
/
Workbench
/
Archive
/
XPK
/
xpk_Source
/
test
/
PrintFlags.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-11-15
|
645b
|
44 lines
#include <xpk/xpk.h>
#include <proto/dos.h>
/* Includesheader
Name: PrintFlags.c
Versionstring: $VER: PrintFlags.c 1.0 (06.12.96)
Author: SDI
Distribution: Freeware
Description: prints flags
1.1 06.12.96 : build with GetXpkSubLibData.c code
*/
ULONG PrintFlag(ULONG *data, ULONG flag, STRPTR str)
{
if(*data & flag)
{
PutStr(str);
*data ^= flag;
if(*data)
{
PutStr("|");
return 2;
}
return 1;
}
return 0;
}
ULONG PrintEndFlag(ULONG data, ULONG origdata)
{
if(data)
{
VPrintf("%ld\n",&data);
return 1;
}
else if(!origdata)
PutStr("0");
PutStr("\n");
return 0;
}